import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/back/lms/template/page',
    method: 'get',
    params: params
  })
}

export function getWuliuOption() {
  return request({
    url: '/back/lms/provider/list',
    method: 'get',
  })
}


export function createLogics(data) {
  return request({
    url: '/back/lms/template/insert',
    method: 'post',
    data: data
  })
}

export function updateBox(id, data) {
  data.id = id
  return request({
    url: '/back/lms/template/update',
    method: 'put',
    data: data
  })
}

export function deleteRole(id) {
  return request({
    url: '/back/lms/template/delete/' + id,
    method: 'delete'
  })
}

export function detailLogics(id) {
    return request({
      url: '/back/lms/template/get/' + id,
      method: 'get'
    })
  }

  export function countryOption(id) {
    return request({
      url: '/back/lms/country/list',
      method: 'get'
    })
  }

  